Page({
  data: {
    account:'',
    password:'',
  },

accountInput:function (e) {
    this.data.account = e.detail.value
},


passwordInput:function (e) {
    this.data.password = e.detail.value
},

register:function(e){
  wx.navigateTo({
    url: '../register/register',
  })
},

phonenum:function(e){
  wx.reLaunch({
    url: '../login_phone/login_phone',
  })
},
forgetpwd:function(e){
  wx.navigateTo({
    url: '../Forget_password/Forget_password',
  })
},
signin:function (e) {
  var that = this
  if(that.data.account==''){
      wx.showModal({
        title:"提示",
        content:"请输入用户名/邮箱/手机号",
        showCancel:false,
        success(res){}
        })
  }else if(that.data.password==''){
      wx.showModal({
          title:"提示",
          content:"请输入密码",
          showCancel:false,
          success(res){}
          })
  }wx.switchTab({
    url: '../home/hone',
  })
},
})